home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12691 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  971 b 

  1. Path: news.larc.nasa.gov!usenet
  2. From: d.s.bang@larc.nasa.gov
  3. Newsgroups: comp.lang.c++
  4. Subject: ReadComm in Windows programming
  5. Date: 21 Mar 1996 06:04:00 GMT
  6. Organization: NASA
  7. Message-ID: <4iqrgg$rj@reznor.larc.nasa.gov>
  8. Reply-To: d.s.bang@larc.nasa.gov
  9. NNTP-Posting-Host: nb1-37.larc.nasa.gov
  10. X-Newsreader: WinVN 0.90.5
  11.  
  12. Dear Programmers,
  13.  
  14. I am programming to access COM ports under Borland C++4.0.  I have a very
  15. simple windows program that initilizes the COM port and Read the data via
  16. using "OpenComm, BuildCommDCB, SetCommState, ReadComm, .."
  17. I get no errors and they seem to work fine, except I just can't read
  18. anything in.  My ReadComm doesn't read any data.  
  19.  
  20. I know my COM port (9600,N,8,1) is receiving data, because I have a DOS 
  21. program that can read it in.  I didn't change any DCB structures; I'm 
  22. using the default values.  Why can't I read it in under windows?
  23.  
  24. Can anybody advise me what in the world I'm doing wrong?
  25. Thank you all in advance.
  26.  
  27. Ray..
  28.